﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlTypes;

public class XL_UserProfiles
{
    public DataRow dong;

    public XL_UserProfiles()
    {

    }
    public XL_UserProfiles(DataRow pDong)
    {
        dong = pDong;
    }


    public int IdUserProfiles
    {
        get
        {
            int kq;
            int.TryParse(dong["IdUserProfiles"].ToString(), out kq);
            return kq;
        }
        set { dong["IdUserProfiles"] = value; }
    }


    public string Username
    {
        get { return dong["Username"].ToString(); }
        set { dong["Username"] = value; }
    }


    public string Names
    {
        get { return dong["Names"].ToString(); }
        set { dong["Names"] = value; }
    }


    public bool Gender
    {
        get
        {
            return Convert.ToBoolean(dong["Gender"]);
        }
        set
        {
            if (value == true)
                dong["Gender"] = 1;
            else
                dong["Gender"] = 0;
        }
    }


    public DateTime DateBirth
    {
        get
        {
            DateTime kq;
            DateTime.TryParse(dong["DateBirth"].ToString(), out kq);
            return kq;
        }
        set { dong["DateBirth"] = value; }
    }


    public string City
    {
        get { return dong["City"].ToString(); }
        set { dong["City"] = value; }
    }


    public string People
    {
        get { return dong["People"].ToString(); }
        set { dong["People"] = value; }
    }


    public string Avatar
    {
        get { return dong["Avatar"].ToString(); }
        set { dong["Avatar"] = value; }
    }


    public string Interests
    {
        get { return dong["Interests"].ToString(); }
        set { dong["Interests"] = value; }
    }


    public string Jobs
    {
        get { return dong["Jobs"].ToString(); }
        set { dong["Jobs"] = value; }
    }


    public DateTime CreateTime
    {
        get
        {
            DateTime kq;
            DateTime.TryParse(dong["CreateTime"].ToString(), out kq);
            return kq;
        }
        set { dong["CreateTime"] = value; }
    }


}

